/*@ File Name : cubemap.h
  @ Date : 18/11/2011
  @ Author : Guillaume Collombet, Ulysse Mensa, Sylvain Chambe

Fireworks simulation projet
Copyright (C) 2011 Guillaume Collombet, Ulysse Mensa, Sylvain Chambe

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.

You can contact us by sending mail at fireworks-simulation-project@googlecode.com*/

#if !defined(_CUBEMAP_H)
#define _CUBEMAP_H

#ifdef _WIN32
	#include <Windows.h>
#endif

#include <GL/glew.h>

#include "const.h"
#include "camera.h"
#include "opengl.h"
#include "texture.h"
#include "displaylist.h"

#define CUBEMAP_TEXTURE_FILENAME "skydom_0_middle.png"

static GLuint Cubemap_displayList = 0;
static GLuint Cubemap_textureId = 0;

void Cubemap_Init(const char* filename);
void Cubemap_InitFromTextureId(GLuint textureId);
void Cubemap_Destroy();
static void Cubemap_s_Draw(void* textureId);
void Cubemap_Draw(const Camera* camera);

#endif  /*_CUBEMAP_H*/